package com.mysterymall.Service;

import com.mysterymall.Common.Utils.Result;
import com.mysterymall.Model.Dto.SmsDto;

import java.io.IOException;

/**
 * @ClassName com.mysterymall.Service
 * @Description
 * @Author HuangWX
 * @Time 2023/12/06  13:52
 */
public interface SmsService {

    /**
     * 发送短信验证码
     * @param smsDto 短信信息
     * @return 发送结果
     */
    Result sendSms(SmsDto smsDto,String sessionId) throws IOException;


    /**
     * 验证短信验证码
     * @param code 短信信息
     * @return 验证结果
     */
    boolean verifySms(String code,String sessionId) throws IOException;

}
